package com.baizhiedu.basic.util;

import org.springframework.context.ApplicationContext;

import javax.servlet.ServletContext;

/**
 * @Author: robert.song
 * @Date: Created in 2021/8/6
 */
public class WebApplicationContextUtils {
    public static ApplicationContext getWebApplicationContext(ServletContext servletContext) {
        return (ApplicationContext) servletContext.getAttribute("app1");
    }
}
